/**
 * Created by wd14931 on 2017/6/5.
 *
 */
var userManagement = require('./../component/user_management');
var sys = require('./../component/system/sys');
var user = require('./../component/system/user');
var log = require('./../component/system/log');
var role = require('./../component/system/role');

var org = require('./../component/base/org');
var employee = require('./../component/base/employee');
var position = require('./../component/base/position');
var sku = require('./../component/base/sku');
var skuclass = require('./../component/base/skuclass');
var skutype = require('./../component/base/skutype');
var skubrand = require('./../component/base/skubrand');
var barcode = require('./../component/base/barcode');
var supplier = require('./../component/base/supplier');
var customer = require('./../component/base/customer');
var printset = require('./../component/base/printset');
var settle = require('./../component/base/settle');
var transport = require('./../component/base/transport');
var finitem = require('./../component/base/finitem');

var purchase = require('./../component/purchase/purchase');
var jhpurchase = require('./../component/purchase/jhpurchase');
var thpurchase = require('./../component/purchase/thpurchase');

var sales = require('./../component/sales/sales');
var xssales = require('./../component/sales/xssales');
var thsales = require('./../component/sales/thsales');

var receivable = require('./../component/finance/receivable');
var payable = require('./../component/finance/payable');
var thirdpay = require('./../component/finance/thirdpay');

var crm = require('./../component/crm/crm');
var crmlevel = require('./../component/crm/crmlevel');
var crmintegral = require('./../component/crm/crmintegral');
var crmrecharge = require('./../component/crm/crmrecharge');

var coupon = require('./../component/operation/coupon');
var mjs = require('./../component/operation/mjs');
var sms = require('./../component/operation/sms');

var wxmedia = require('./../component/wx/wxmedia');
var wxmenu = require('./../component/wx/wxmenu');
var wxuser = require('./../component/wx/wxuser');
var wxmall = require('./../component/wx/wxmall');
var wxmsg = require('./../component/wx/wxmsg');

//用户管理
var userManagement = require('./../component/user_management/list');
var userAdd        = require('./../component/user_management/add');

// 角色管理
var roleManagement = require('./../component/role_management/list');
var roleAdd        = require('./../component/role_management/add');

// 采购
var purchasePreview = require('./../component/purchase_management/preview');

var routers = [
    { path: '/usermanagement', component: userManagement },
    { path: '/useradd',         component: userAdd },
    { path: '/rolemanagement', component: roleManagement },
    { path: '/roleAdd',         component: roleAdd },
    { path: '/purchasepreview',component: purchasePreview }
];


var routers = [
	{ path: '/usermanagement', component: userManagement },
    { path: '/useradd',         component: userAdd },
    { path: '/rolemanagement', component: roleManagement },
    { path: '/roleAdd',         component: roleAdd },
    { path: '/purchasepreview',component: purchasePreview },
	
    { path: '/sys', component: sys },
    { path: '/user', component: user },
    { path: '/log', component: log },
    { path: '/role', component: role },

    { path: '/org', component: org },
    { path: '/employee', component: employee },
    { path: '/position', component: position },
    { path: '/sku', component: sku },
    { path: '/skuclass', component: skuclass },
    { path: '/skutype', component: skutype },
    { path: '/skubrand', component: skubrand },
    { path: '/barcode', component: barcode },
    { path: '/supplier', component: supplier },
    { path: '/customer', component: customer },
    { path: '/printset', component: printset },
    { path: '/settle', component: settle },
    { path: '/transport', component: transport },
    { path: '/finitem', component: finitem },

    { path: '/purchase', component: purchase },
    { path: '/jhpurchase', component: jhpurchase },
    { path: '/thpurchase', component: thpurchase },

    { path: '/sales', component: sales },
    { path: '/xssales', component: xssales },
    { path: '/thsales', component: thsales },

    { path: '/receivable', component: receivable },
    { path: '/payable', component: payable },
    { path: '/thirdpay', component: thirdpay },

    { path: '/crm', component: crm },
    { path: '/crmlevel', component: crmlevel },
    { path: '/crmintegral', component: crmintegral },
    { path: '/crmrecharge', component: crmrecharge },

    { path: '/coupon', component: coupon },
    { path: '/mjs', component: mjs },
    { path: '/sms', component: sms },

    { path: '/wxmall', component: wxmall },
    { path: '/wxmedia', component: wxmedia },
    { path: '/wxmenu', component: wxmenu },
    { path: '/wxmsg', component: wxmsg },
    { path: '/wxuser', component: wxuser }
];

var  router = new VueRouter({
    routes: routers
});

module.exports = router;